package db_java;

import com.basicorm.annotations.Column;
import com.basicorm.annotations.Table;

@Table("company")
public class Company {

	// int companyID;
	@Column("company_name")
	private String companyName;

	@Column("company_add")
	private String companyAdd;

	@Column("company_id")
	private Integer id;

	Company(/* int companyID, */String companyName, String companyAdd,
			Integer id) {
		// this.companyID = companyID;
		this.companyName = companyName;
		this.companyAdd = companyAdd;
		this.id = id;
	}
	
	public Company(){
		
	}

	@Override
	public String toString() {
		return "Company name: " + companyName + "; Company address: "
				+ companyAdd;
	}

	public String getCompanyName() {
		return companyName != null ? companyName : "";
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getCompanyAdd() {
		return companyAdd != null ? companyAdd : "";
	}

	public void setCompanyAdd(String companyAdd) {
		this.companyAdd = companyAdd;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
}
